package com.ling.luo.trade.controller;

import com.ling.luo.trade.service.AlipayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 支付宝-统一收单交易支付接口
 *
 * @author luohoujian
 * @date 2021/04/27
 */
@Slf4j
@RestController
@RequestMapping("/pay")
public class AlipayTradePayController {

    @Autowired
    private AlipayService alipayService;

    @GetMapping("/pay")
    public String alipayTradePay () {
        return alipayService.alipayTrade();
    }


}
